<?php
// Location: application/libraries/config.php

// Variables
// ---------
  $application['variables']['default_controller'] = "base";

// Includes
// --------
  include($system['variables']['paths']['application'] . '/libraries/functions.php');
  include($system['variables']['paths']['application'] . '/libraries/auto.php');
  
// Autoload Classes
// ----------------
  if (__isset($application['variables']['autoload']['core'])) {
    foreach (explode(',', $application['variables']['autoload']['core']) as $key) {
      include($system['variables']['paths']['system'] . '/core/classes/' . $key . '.class.php');
    }
  }
  
// Autoload Plugins
// ----------------
  if (__isset($application['variables']['autoload']['plugins'])) {
    foreach (explode(',', $application['variables']['autoload']['plugins']) as $key) {
      include($system['variables']['paths']['system'] . '/plugins/' . $key . '.class.php');
    }
  }

?>
